package org.infinitest.intellij.idea;

import com.intellij.openapi.compiler.CompilationStatusListener;
import com.intellij.openapi.compiler.CompilerManager;
import com.intellij.openapi.project.Project;
import org.infinitest.intellij.CompilationNotifier;

public class IdeaCompilationNotifier implements CompilationNotifier
{
  private Project project;

  public IdeaCompilationNotifier(Project project)
  {
    this.project = project;
  }

  public void addCompilationStatusListener(CompilationStatusListener compilationListener)
  {
    CompilerManager.getInstance(project).addCompilationStatusListener(compilationListener);
  }
}
